{% extends "author_list.html" %}
{% block title %}
    修改作者
{% endblock %}
{% block content-title %}
    修改作者
{% endblock %}
{% block content %}
    <form action="" method="post">
        <div class="form-group">
            姓名<input type="text" name="name" value="{{ current_author.name }}" class="form-control">
        </div>
        <div class="form-group">
            {% if current_author.gender == '1' %}
                <input type="radio" name="gender" value="1" checked/> 男
                <input type="radio" name="gender" value="2"/> 女
            {% else %}
                <input type="radio" name="gender" value="1"/> 男
                <input type="radio" name="gender" value="2" checked/> 女
            {% endif %}
        </div>
        <div class="form-group">
            年龄<input type="text" name="age" value="{{ current_author.author_detail.age }}" class="form-control">
        </div>
        <div class="form-group">
            电话<input type="text" name="phone" value="{{ current_author.author_detail.phone }}" class="form-control">
        </div>
        <div class="form-group">
            地址<input type="text" name="address" value="{{ current_author.author_detail.address }}"
                       class="form-control">
        </div>
        <div class="form-group">
            <button type="submit" value="修改" class="btn btn-success btn-block">修改</button>
        </div>
        <div class="form-group">
            <a type="button" href="/author/list"
               class="btn btn-info btn-block">返回
            </a>
        </div>
    </form>
{% endblock %}
